textview: Fix comparison being the wrong way
authorBenjamin Otte <otte@redhat.com>
Fri, 23 Sep 2011 20:22:35 +0000 (22:22 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 23 Sep 2011 20:24:00 +0000 (22:24 +0200)
Keynav failed when the position did _not_ change.

gtk/gtktextview.c

index 4ddc279e16935f542285b43725b354e9f6c3be7f..0fd03c016396712021ac4c42258a74d720cf232d 100644 (file)
@@ -5324,7 +5324,7 @@ gtk_text_view_move_cursor_internal (GtkTextView     *text_view,
       old_xpos = priv->xoffset;
       old_ypos = priv->yoffset;
       gtk_text_view_move_viewport (text_view, scroll_step, count);
-      if ((old_xpos != priv->xoffset || old_ypos != priv->yoffset) &&
+      if ((old_xpos == priv->xoffset && old_ypos == priv->yoffset) &&
           leave_direction != -1 &&
           !gtk_widget_keynav_failed (GTK_WIDGET (text_view),
                                      leave_direction))